<template>
  <Layout class="my">
    <van-nav-bar title="三鑫补货系统"/>
    <div class="isLogin">
      <div>{{userno}}已登录</div>
    </div>
  </Layout>
</template>

<script lang="ts">
  import Vue from "vue";
  import {Component} from "vue-property-decorator";
  import Layout from "@/components/Layout.vue";

  @Component({
    components: {Layout}
  })
  export default class My extends Vue {
    userno = "";

    created() {
      this.$store.commit("getUser");
      this.userno = JSON.parse(this.$store.state.user).userno;
    }
  }
</script>

<style lang="scss" scoped>
  .my {
    position: relative;
    font-size: 24px;

    .isLogin {
      position: absolute;
      left: 50%;
      top: 50%;
      transform: translate(-50%, -50%);

      a {
        color: rgb(82, 102, 237);
      }
    }

    ::v-deep.van-nav-bar {
      background: rgb(2, 101, 203);
    }

    ::v-deep .van-icon {
      color: white;
    }

    ::v-deep .van-nav-bar__left {
      fill: white;
    }

    ::v-deep .van-nav-bar__text {
      color: white;
    }

    ::v-deep .van-nav-bar__title {
      color: white;
    }
  }

</style>